<?php
	$tblTour = new Zendvn_Models_ProItem();
	$tour = $tblTour -> listItem($this->arrParam,array('task'=>'feat-index'));
?>
                    <div class="group2 mar-top-30">
                    	<div class="sub-left">
                            <div class="bag-title-green">
                                <img src="<?php echo $this->imgUrl;?>/icon/icon-tour.png" alt=""  />
                                <p>TOUR NỔI BẬT</p>
                            </div>
                        </div>
                        <?php
                        if(!empty($tour)){
	                        foreach ($tour as $key => $val){
	                        	$name 		= $val['name'];
                    			$price 		= $val['price'];
                    			$selloff 	= $val['selloff'];
                    			if(empty($selloff)){
                    				$price 	= number_format($price,null) . ' VND';
                    			}else{
                    				$price 	= number_format($selloff,null) . ' VND';
                    			}
                    			
                    			$sumTmp 	= $val['summary'];
                    			$sumTmp 	= str_replace("\\"," ",$sumTmp);
                    			
				                $cutTring 	= new Zendvn_File_CutTring();
				                $sumarry 	= $cutTring->cutTring(110,$sumTmp,null);				                
				                $name = $cutTring->cutTring(25, $name, null);
				                
                    			if(!empty($val['picture'])){
                    				$linkImg	= FILES_URL . '/products/images450x450/' . $val['picture'];
                    				$picture 	= '<img height="160" src="'. $linkImg .'" alt="'.$val['name'].'" />';
                    			}else{
                    				$linkImg	= FILES_URL . '/products/images100x100/no-image.jpg';
                    				$picture 	= '<img height="160" src="'. $linkImg .'" alt="'.$val['name'].'" />';
                    			}
                    			$lang = $this->arrParam['lang'];
                    			if(empty($lang)){
                    				$lang = 'vi';
                    			}else{
                    				$lang = $this->arrParam['lang'];
                    			}
                    			$urlOptions = array('module'=>'products','controller'=>'index',
													'action'=>'detail',
													'tcat'=>$val['alias_name'],
													'title'=>$val['alias'],
                    								'cid'=> $val['cat_id'],
													'id'=>$val['id'],
                    								'lang'=>$lang);
                    			$linkDetail = $this->url($urlOptions,'shop-detail');
								$linkCart = $this->baseUrl('/products/index/add-item/id/' . $val['id']); 
	                        	$i = $key+1;
	                        	if($i%3 != 0){
	                        		$cls = 'col-0';
	                        	}else{
	                        		$cls = 'col-3';
	                        	} 
                        ?>
                        
                        <div class="box-cnt <?php echo $cls ?> width-32 mar-top-20">
                            <div class="cnt border-1">
                                <div class="bor-img">
                                    <a title="<?php echo $val['name']?>" href="<?php echo $linkDetail?>"><?php echo $picture?></a>
                                    <div class="clr"></div>
                                    <div class="text-price"><?php echo $price;?></div>
                                </div>
                                <div class="desc">
                                    <h2 class="title"><a title="<?php echo $val['name']?>" href="<?php echo $linkDetail?>"><?php echo $name?></a></h2>
                                    <p><?php echo $sumarry?></p>
                                </div>
                                <a href="<?php echo $linkCart?>" class="cart"><img src="<?php echo $this->imgUrl;?>/icon/icon-cart.png" alt="cart"  /></a>
                                <a title="<?php echo $val['name']?>" href="<?php echo $linkDetail?>" class="link-readmore"><span>Chi tiết...</span></a>
                            </div>
                        </div>
                        
                        <?php }}?>
                    </div>
